﻿<phone:PhoneApplicationPage 
    x:Class="OnlineMovies.Views.StoryDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:LART="clr-namespace:OnlineVideos"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="False">
    <Grid x:Name="MainGrid">
        <Grid.RowDefinitions   >
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>

        <!--LayoutRoot is the root grid where all page content is placed-->
        <Grid x:Name="LayoutRoot" Grid.Row="0" Background="Transparent">
            <!--Pivot Control-->
            <controls:Pivot x:Name="pvtMainDetails" SelectionChanged="pvtMainDetails_SelectionChanged_1">
                <controls:Pivot.Title>
                    <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
                        <Image Style="{StaticResource DetailPagePivotTitleImage}" x:Name="imgTitle" />
                        <TextBlock   x:Name="tblkVideosTitle"   TextWrapping="NoWrap" Style="{StaticResource DetailPagePivotTitle}"/>
                    </StackPanel>
                </controls:Pivot.Title>
                <controls:Pivot.Foreground>white</controls:Pivot.Foreground>
                <!--Pivot item one-->
                <controls:PivotItem x:Name="pvtitmSongs" Header="videos" >

                    <Grid  x:Name="showVideogrid">
                        <LART:ShowVideos x:Name="showVideoList" />
                    </Grid>
                </controls:PivotItem>
                <!--Pivot item two-->

                <controls:PivotItem  Margin="0,10,0,0" x:Name="storypivot" Header="read" >

                    <Grid x:Name="storyGrid">

                        <TextBlock  x:Name="tbstoryintro" TextWrapping="Wrap"   Margin="15,30,0,15"></TextBlock>
                        <TextBlock  x:Name="txterror" FontSize="28" Height="70"  Visibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
                        <Button BorderBrush="White" Margin="0,100,0,15" Foreground="White"  x:Name="btnreadmore"  FontSize="22" Click="btnreadmore_Click" Height="80"   Visibility="Visible" Width="350" Background="Transparent"  HorizontalAlignment="Center"></Button>
                        <Button BorderBrush="White" Foreground="White"  x:Name="Record" Margin="0,301,0,15"  FontSize="22" Click="btnrecard_Click" Height="80"   Visibility="Visible" Width="350" Background="Transparent"  HorizontalAlignment="Center"></Button>
                        <Button BorderBrush="White" Foreground="White"  x:Name="btnlisten"  FontSize="22" Margin="0,471,0,0" Click="btnbtnlisten_Click" Height="80"  Visibility="Visible" Width="350" Background="Transparent"  HorizontalAlignment="Center"></Button>
                    </Grid>
                </controls:PivotItem>
            </controls:Pivot>
        </Grid>
        <StackPanel Name="adstackpl" Grid.Row="1"  Orientation="Vertical"  >
        </StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>

        <shell:ApplicationBar x:Name="appbar" IsVisible="False" IsMenuEnabled="True">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem x:Name="btnshare" Text="Share this" Click="btnshare_Click_1"/>
                <shell:ApplicationBarMenuItem x:Name="btnadd"   Text="Add" Click="btnadd_Click_1"/>
                <shell:ApplicationBarMenuItem x:Name="btnedit"   Text="Edit story" Click="btnedit_Click_1"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>